cmake_minimum_required(VERSION 3.16)


include_directories(

                                          ${PROJECT_SOURCE_DIR}/lvgl/
                                          ${PROJECT_SOURCE_DIR}/lv_drivers/
                                          ${PROJECT_SOURCE_DIR}/lv_drivers/display
                                          ${PROJECT_SOURCE_DIR}/lv_drivers/indev
                                          ${PROJECT_SOURCE_DIR}/main/

)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/build)


add_executable(${PROJECT_NAME}  main.c)
# add_executable(${PROJECT_NAME}    ${DIRSRCS_CUSTOM}  ${DIRSRCS_GENERATED}  main.c)
target_link_libraries(${PROJECT_NAME} PRIVATE 
    lvgl lvgl::examples lvgl::demos lvgl::drivers
        SDL2
        SDL2main
        m
        dl
        pthread
        )